import ClickOutSide from './directive.js';
import Vue from 'vue';

const install = (Vue) => {
	Vue.directive('clickOutSide', ClickOutSide);
};

if (!Vue.prototype.$isServer && window.Vue) {
	window.clickOutSide = ClickOutSide;
	Vue.use(install);
};

ClickOutSide.install = install;
export default ClickOutSide;
